package book;

public class BookList {
    public Book[] books=new Book[10];
    private int uesdsize;

    public BookList() {
        this.books[0] = new Book("三国演义","罗贯中",10,"小说");
        this.books[1] = new Book("西游记","吴承恩",59,"小说");
        this.books[2] = new Book("红楼梦","曹雪芹",16,"小说");
        this.uesdsize=3;
    }
    //其他方法
    public void SetBook(int pos,Book book){
        books[pos]=book;
    }
    public Book GetBook(int pos){
        return this.books[pos];
    }
    public void SetUsedSize(int usesize){
        this.uesdsize=usesize;
    }
    public int GetUsedSize(){
        return this.uesdsize;
    }
    public void setBooks(int pos,Book book){
        books[pos]=book;
    }
}
